<%@ page language="java" import="java.util.*,StudentScore.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>老师登录成功</title>
</head>
<body style="text-align:center;">
<form name="postForm" action="MenuTeacher.jsp" method="post">
<%
    	TeacherDao tdao = new TeacherDaoJDBC();
    	String no = request.getParameter("teano");
    	int teano = Integer.parseInt(no);
    	String password = request.getParameter("password");
    	if(tdao.login(teano,password)==1){
    		response.sendRedirect("MenuTeacher.jsp");
		}
    	else
    	{
    		response.sendRedirect("Login.jsp");
    	}
%>
</form>
</body>
</html>